Skip to content
This repository was archived by the owner on Jan 23, 2026. It is now read-only.

Add support for non-administrator CLI upgrades on Windows#263

Closed
devin-ai-integration[bot] wants to merge 5 commits intomainfrom
devin/1746069802-support-non-admin-upgrade
Closed

Add support for non-administrator CLI upgrades on Windows#263
devin-ai-integration[bot] wants to merge 5 commits intomainfrom
devin/1746069802-support-non-admin-upgrade

Conversation

@devin-ai-integration
Copy link
Copy Markdown
Contributor

Add support for non-administrator CLI upgrades on Windows

This PR adds support for upgrading the CLI without administrator privileges on Windows when it was initially installed without admin privileges.

Changes

  • Added isWindowsUserInstallation() function to detect when the CLI is installed in the user's LocalAppData folder
  • Added upgradeWithWindowsUser() function to handle non-admin upgrades using the zip archive instead of MSI
  • Modified UpgradeCLI() to use the appropriate upgrade path based on installation type

Testing

  • Built and verified the code compiles successfully
  • Confirmed the logic correctly identifies non-admin installations and uses the appropriate upgrade path

Link to Devin run: https://app.devin.ai/sessions/d39f6adcb47541f3912337658bebae7b
Requested by: jhaynie@agentuity.com

Co-Authored-By: jhaynie@agentuity.com <jhaynie@gmail.com>
@devin-ai-integration devin-ai-integration Bot requested a review from jhaynie May 1, 2025 03:25
@devin-ai-integration
Copy link
Copy Markdown
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

Comment thread internal/util/upgrade.go Outdated
return false
}

exePath := strings.ToLower(strings.ReplaceAll(exe, "\\", "/"))
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

doesn't go have a way to do this platform independent with path

devin-ai-integration Bot and others added 4 commits May 1, 2025 03:29
Co-Authored-By: jhaynie@agentuity.com <jhaynie@gmail.com>
Co-Authored-By: jhaynie@agentuity.com <jhaynie@gmail.com>
Co-Authored-By: jhaynie@agentuity.com <jhaynie@gmail.com>
Co-Authored-By: jhaynie@agentuity.com <jhaynie@gmail.com>
@jhaynie
Copy link
Copy Markdown
Member

jhaynie commented May 1, 2025

  • testing with admin account
  • testing with user account

@jhaynie jhaynie closed this May 11, 2025
@jhaynie jhaynie deleted the devin/1746069802-support-non-admin-upgrade branch May 11, 2025 01:15
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant